#include"UdpServer.hpp"

#include <iostream>
#include <memory>


int main(int argc,char* argv[3])
{
    if(argc != 3)
    {
        std :: cerr << "Server failed" << std :: endl;
        exit(1);
    }
    std::string _ip = argv[1];
    uint16_t _port = std::stoi(argv[2]);
    //UdpServer(int socket1 = deafulet,std :: string ip,int port)
    Enable_Console_Log_Strategy();
    std::unique_ptr<UdpServer> usvr = std::make_unique<UdpServer>(_ip,_port);
    usvr ->Init();
    usvr -> Start();
    return 0;
}